package homework.mission3;

/**
 * 上网套餐类
 */
public class OnlineBusiness extends PhoneBusiness implements OnlineServiceInter {
    //上网流量
    private double gbrs;


    public double getGbrs() {
        return gbrs;
    }

    public void setGbrs(double gbrs) {
        this.gbrs = gbrs;
    }

    @Override
    public String toString() {
        super.toString();
        return "OnlineBusiness{" +
                "gbrs=" + gbrs +
                '}';
    }

    @Override
    public void onlineService(double gbrs, PhoneCard phoneCard) {
        System.out.println("上网套餐类实现上网服务接口");
    }
}
